class AKFFire extends KFFire config(ValidAlienServer);

/*
var() globalconfig bool bValid;

replication
{
	// Variables the server should send to the client.
	reliable if( Role==ROLE_Authority )
		bValid;
		
}

*/

simulated function bool AllowFire()
{
	//if( bValid == True )
	//{
		if(KFWeapon(Weapon).bIsReloading)
			return false;
		if(KFPawn(Instigator).SecondaryItem!=none)
			return false;
		if(KFPawn(Instigator).bThrowingNade)
			return false;

		if(KFWeapon(Weapon).MagAmmoRemaining < 1)
		{
			if( Level.TimeSeconds - LastClickTime>FireRate )
			{
				LastClickTime = Level.TimeSeconds;
			}

			if( AIController(Instigator.Controller)!=None )
				KFWeapon(Weapon).ReloadMeNow();
			return false;
		}
	//}
	//else
	//	return false;

	return Super.AllowFire();
}

defaultproperties
{
     
}